<template>
  <div>
    <BaseForm :formList="formList" />
  </div>
</template>
<script>
import BaseForm from "./components/BaseForm/index";

export default {
  name: "formAutoRender",
  components: { BaseForm },
  data() {
    return {
      // 表单配置
      formList: [
        {
          tag: "el-input",
          __vModel__: "searchName",
          defaultValue: 1,
        },
        {
          tag: "el-input",
          __vModel__: "searchName2",
          defaultValue: 2,
        },
        {
          tag: "el-select",
          __vModel__: "haha",
          defaultValue: [],
        },
      ],
    };
  },
};
</script>